package com.wlz.principle.lod.right;


import com.wlz.principle.lod.Student;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        //产生一个学生群体
        List<Student> listGirls = new ArrayList<Student>();
        for (int i = 0; i < 20; i++) {
            listGirls.add(new Student());
        }
        //体育委员聚合女生群体对象
        SportsCommissioner sportsCommissioner = new SportsCommissioner(listGirls);
        //体育老师发布命令给体育委员
        SportsTeacher teacher = new SportsTeacher();
        teacher.commond(sportsCommissioner);
    }
}
